package com.example.demo.mvvm.ui.fragment;

import android.os.Bundle;

import com.example.demo.mvvm.BR;
import com.example.demo.mvvm.R;
import com.example.demo.mvvm.databinding.FragmentMeBinding;
import com.example.demo.mvvm.ui.base.BaseFragment;
import com.example.demo.mvvm.ui.vm.fragment.MeFragmentVm;

/**
 * Created by 80711 on 2018/5/16.
 */

public class MeFragment extends BaseFragment<FragmentMeBinding> {
    public static MeFragment newInstance() {
        Bundle args = new Bundle();
        MeFragment fragment = new MeFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void init() {
        setViewVM(BR.viewModel ,  new MeFragmentVm(databing));
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_me;
    }

}
